package top.shen33.yang.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * <p>
 * ip代理
 * </p>
 *
 * @author oreilly
 * @since 2018-08-28
 */
public class IpProxy extends Model<IpProxy> {

private static final long serialVersionUID = 1L;


                @TableId(value = "sid", type = IdType.AUTO)
                
    private Integer sid;

    @Excel(name = "ip",width = 20,orderNum = "0")
    private String ip;
    /**
     * 端口
     */

        
    @Excel(name = "端口",width = 20,orderNum = "0")
    private Integer port;
    /**
     * 响应时间-ms
     */

        
    @Excel(name = "响应时间-ms",width = 20,orderNum = "0")
    private BigDecimal responseTime;
    /**
     * 位置
     */

        
    @Excel(name = "位置",width = 20,orderNum = "0")
    private String location;
    /**
     * 最后验证时间
     */

        
    @Excel(name = "最后验证时间",width = 20,orderNum = "0")
    private Date lastVerifyTime;


    public Integer getSid() {
            return sid;
    }

    public void setSid(Integer sid) {
            this.sid = sid;
    }

    public String getIp() {
            return ip;
    }

    public void setIp(String ip) {
            this.ip = ip;
    }

    public Integer getPort() {
            return port;
    }

    public void setPort(Integer port) {
            this.port = port;
    }

    public BigDecimal getResponseTime() {
            return responseTime;
    }

    public void setResponseTime(BigDecimal responseTime) {
            this.responseTime = responseTime;
    }

    public String getLocation() {
            return location;
    }

    public void setLocation(String location) {
            this.location = location;
    }

    public Date getLastVerifyTime() {
            return lastVerifyTime;
    }

    public void setLastVerifyTime(Date lastVerifyTime) {
            this.lastVerifyTime = lastVerifyTime;
    }

    @Override
    protected Serializable pkVal() {
            return this.sid;
    }

    @Override
    public String toString() {
        return "IpProxy{" +
                ", sid=" + sid +
                ", ip=" + ip +
                ", port=" + port +
                ", responseTime=" + responseTime +
                ", location=" + location +
                ", lastVerifyTime=" + lastVerifyTime +
        "}";
    }
}
